﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZXIMEW.DAL;
using ZXIMEW.Models.DModels;

namespace ZXIMEW.BLL
{
    public class UserBLL
    {
        /// <summary>
        /// 登录系统
        /// </summary>
        UserDAL userDAL = new UserDAL();
        public UserInfo Login(UserInfo userInfo)
        {
            UserInfo reUser = userDAL.Login(userInfo);
            if (reUser != null)
            {
                reUser.UserName = userInfo.UserName;
            }
            return reUser;
        }
    }
}
